#include <bits/stdc++.h>
using namespace std;
int n, m;
const int N = 1e5 + 10, M = 1e6 + 10;
char s[M], p[N];
int ne[N];

int main() {
	cin >> n >> p + 1 >> m >> s + 1;

	return 0;
}